/*
 * tarm_iic.h
 *
 *  Created on: 2019年12月10日
 *      Author: tinnu
 */

#ifndef MIDDLEWARE_TARM_UART_H_
#define MIDDLEWARE_TARM_UART_H_


#include "fsl_usart.h"

#include "peripherals.h"

#define _UARTSAVEBUFSIZE 500
struct _StructUartBuf
{
	int RxbufSize;
	short FinishFlag;
	char Rxbuf[_UARTSAVEBUFSIZE];
};

extern struct _StructUartBuf StructUart0RxBuf,StructUart1RxBuf;
//extern char UartRecFinishAsciiChar[2] = {0x0A, 0x0D};

void PRINTF_UART0(const char *data);
void PRINTF_UART1(const char *data);

void PRINTF_UART0OnSize(const char *data, uint16_t length);
void PRINTF_UART1OnSize(const char *data, uint16_t length);

#endif /* MIDDLEWARE_TARM_IIC_H_ */
